package com.ys.peony.utils;

import android.app.Activity;
import android.content.Context;

/**
 * 应用对应的工具类
 */
public class AppUtils {


    private static Context context;
    private static Activity act;

    public static Activity getActivity() {
        return act;
    }

    public static final void setActivity(Activity acti) {
        act = acti;
        context = acti;
    }

    public static final Context getContext() {
        if (context != null) {
            return context;
        }
        return act;
    }

    public static final void setContext(Context ctx) {
        context = ctx;
    }

}
